import {
  isArray
} from "@/utils/validate";

function checkArray(rule, value, callback) {
  if (!isArray(value)) {
    callback(new Error("Please select a role"));
  } else {
    callback();
  }
}

export const rules = {

};

export function Model(
  title = "",
  sku = "",
  csku = "",
  supper_id = "",
  price = "",
  product_id = "",
) {
  this.title = title;
  this.sku = sku;
  this.csku = csku;
  this.supper_id = supper_id;
  this.price = price;
  this.product_id = product_id;
}

export function SearchModel() {}